package com.simple.piger.enums;

import org.apache.commons.lang3.StringUtils;

public enum InviteCompanyScaleEnums {
    $1("1", "0-20人"),
    $2("2", "20-99人"),
    $3("3", "100-499人"),
    $4("4", "500-999人"),
    $5("5", "1000-9999人"),
    $6("6", "10000人以上");

    private String item;

    private String desc;

    InviteCompanyScaleEnums(String item, String desc) {
        this.item = item;
        this.desc = desc;
    }

    public String getItem() {
        return item;
    }

    public void setItem(String item) {
        this.item = item;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static String transfer(String status) {
        if (StringUtils.isBlank(status)) {
            return null;
        }
        for (InviteCompanyScaleEnums enums : InviteCompanyScaleEnums.values()) {
            if (enums.getItem().equals(status)) {
                return enums.getDesc();
            }
        }
        return null;
    }
}
